import Api from "./Api";

class UserApi extends Api {
    constructor() {
        super();
    }

    // 用户登录
    write_user_login(data: any) {
        return this._post("write_user_login", data);
    }

    // 获取用户信息
    get_user(data: any = {}) {
        return this._post("get_user", data);
    }

    // 添加用户
    write_user(data: any) {
        return this._post("write_user", data);
    }

    // 删除用户
    del_user(data: any) {
        return this._post("del_user", data);
    }
}

const userApi = new UserApi();
export default userApi;

